print(*['*' *  i for i in map(int, (input().split()))], sep='\n')
